//
//  JZAdSDK.h
//  JZAdSDK
//
//  Created by 陈坤 on 2025/9/28.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface JZAdSDK : NSObject

/**
初始化极准SDK

@param appId 给定的唯一appid
@param requestDomain 请求域名，格式为协议加域名
@param completion 初始化完成回调
*/
+ (void)initWithAppId:(NSString *)appId requestDomain:(NSString *)requestDomain completionBlock:(nullable void(^)(NSError *_Nullable error))completion;

/**
 SDK Version
 */
+ (NSString *)getSDKVersion;

/**
 SDK init config cache succeed or not
 
 @param appId 给定的唯一appid
 */
+ (BOOL)initConfigCacheSucceed:(NSString *)appId;

/**
 设置WebView的原始UA
 原始UA示例：Mozilla/5.0 (iPhone; CPU iPhone OS 15_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148
 原始UA应满足正则表达式‘^Mozilla.*?Mobile\/[0-9A-Z]+’
 @param originalUA WebView的原始UA
 */
+ (NSError *)setOriginalUA:(NSString *)originalUA;

@end

NS_ASSUME_NONNULL_END
